﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ZoneManager.ascx.cs" Inherits="Web.Cms.Content.Zones.ZoneManager" %>
<div style="padding-bottom: 20px;">
    <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('../Cms/Content/Zones/CreateEditZone.aspx','Quản lý chuyên mục',750,400,null,__doPostBack)">
        <img src="../App_Themes/Default/Images/Add_b.gif" border="0" />
     </a>       
</div>
<div><asp:Label ID="lblUpdateStatus" runat="server"></asp:Label></div>
<div>Lựa chọn chuyên mục gốc: 
    <asp:DropDownList ID="dropParent" runat="server" Width="236px" AutoPostBack="true" OnSelectedIndexChanged="dropParent_SelectedIndexChanged"></asp:DropDownList>
</div>
<br />
<asp:GridView ID="grdZone" runat="server" SkinID="AdminGridView" BackColor="#ffffff" AutoGenerateColumns="false"
  OnRowCommand="grdZone_RowCommand">
    <Columns>               
        <asp:BoundField HeaderText="STT" ItemStyle-Width="20">
            <ItemStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="Center" />
        </asp:BoundField>              
        <asp:TemplateField HeaderText="Mã thể loại">
            <ItemStyle HorizontalAlign="Center" Width="100px" /> 
            <ItemTemplate>
                <%#Eval("ZoneID") %>
            </ItemTemplate>
        </asp:TemplateField> 
        <asp:TemplateField HeaderText="Tên chuyên mục">
            <ItemTemplate>
                <%#Eval("Title") %>
            </ItemTemplate>
        </asp:TemplateField>        
         <asp:TemplateField>                      
            <HeaderTemplate>                                
                 <asp:Button ID="btnPriority" runat="server" SkinID="IconPriority" CommandName="SetPriority" />
            </HeaderTemplate>
            <ItemStyle Width="50px" HorizontalAlign="Center" />
            <ItemTemplate>
                <asp:DropDownList runat="server" ID="dropPriority">
                </asp:DropDownList>                
            </ItemTemplate>            
        </asp:TemplateField>        
        <asp:TemplateField HeaderText="Sửa" ItemStyle-Width="30">
            <ItemTemplate>
                <asp:Label Visible="false" ID="lbZoneIDLang" runat="server" Text='<%# Eval("ZoneIDLang") %>'></asp:Label>                                
                <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('../Cms/Content/Zones/CreateEditZone.aspx?ZoneID=<%#Eval("ZoneID") %>&ZoneIDLang=<%#Eval("ZoneIDLang") %>&page=<%#Eval("TrangHienThi") %>','Chỉnh sửa chuyên mục',830,420,null,__doPostBack)">
                    <img src="../App_Themes/Default/images/edit.gif" border="0">
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Xóa" ItemStyle-Width="30">
            <ItemTemplate>
                <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("ZoneIDLang") %>' CommandName="Commanddelete" OnClientClick="return confirm('Bạn có chắc chắn xóa không ?')" />                   
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
